#include "ConsoleEntryPoint.h"
#include "XmlFileWriter.h"
#include <iostream>

#if (defined(DEBUG) | !defined(CM_EXPORTS))
void ConsoleMain(int argc, _TCHAR* argv[])
{
	/* XML test
	const string STR_TEST = "TEST";
	const string STR_test2 = "test2";
	XmlFileWriter writer = XmlFileWriter();
	if (writer.SetPath("D:\\test.xml"))
	{
		writer.OpenElement(STR_TEST);
		
		writer.OpenElement(STR_test2);
		writer.AddAttribute("attr", "value");
		writer.AddAttribute("attr2", "value");
		writer.AddContent(2.5f);
		writer.CloseElement();

		writer.OpenElement(STR_test2);
		writer.OpenElement(STR_test2);
		writer.CloseElement();
		writer.CloseElement();

		writer.OpenElement(STR_test2);
		writer.AddContentCData("cdata test\non multiple lines");
		writer.CloseElement();

		writer.CloseElement();
	}
	*/
}
#endif